package com.woniuxy.store.client;

import com.woniuxy.store.client.result.PackageDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import result.Result;

import java.util.List;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "packageQueryClient",name="store",path="/store/contract")
public interface PackageQueryClient {

    @GetMapping("/package")
    public Result<List<PackageDto>> allPackage();





}
